package org.lq.shopping.entity;

import java.io.Serializable;
import java.sql.Date;
/**
 * 
 * @author 和鸿雁
 * @时间 2018年9月26日
 * Shopping_LQ
 */
public class ShopShengq implements Serializable{

	/**
	 * 序列版本号
	 */
	private static final long serialVersionUID = -8606301820808081922L;
	private int after_id;//售后 ID
	private int order_id;//订单 ID
	private String cause;//提交原因
	private Date after_date;//退货时间
	private String issue;//问题描述
	private String after_img;//图片信息
	private int voucher;//状态 0有发票 1有检测报告
	private String mode_return;//返回方式
	private String address_get;//取货地ַ
	private String address_put;//收货地址
	private String username;//顾客姓名
	private int user_id;//用户ID
	
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	
	public int getAfter_id() {
		return after_id;
	}
	public void setAfter_id(int after_id) {
		this.after_id = after_id;
	}
	public int getOrder_id() {
		return order_id;
	}
	public void setOrder_id(int order_id) {
		this.order_id = order_id;
	}
	public String getCause() {
		return cause;
	}
	public void setCause(String cause) {
		this.cause = cause;
	}
	public Date getAfter_date() {
		return after_date;
	}
	public void setAfter_date(Date after_date) {
		this.after_date = after_date;
	}
	public String getIssue() {
		return issue;
	}
	public void setIssue(String issue) {
		this.issue = issue;
	}
	public String getAfter_img() {
		return after_img;
	}
	public void setAfter_img(String after_img) {
		this.after_img = after_img;
	}
	public int getVoucher() {
		return voucher;
	}
	public void setVoucher(int voucher) {
		this.voucher = voucher;
	}
	public String getMode_return() {
		return mode_return;
	}
	public void setMode_return(String mode_return) {
		this.mode_return = mode_return;
	}
	public String getAddress_get() {
		return address_get;
	}
	public void setAddress_get(String address_get) {
		this.address_get = address_get;
	}
	public String getAddress_put() {
		return address_put;
	}
	public void setAddress_put(String address_put) {
		this.address_put = address_put;
	}
	public int getUser_id() {
		return user_id;
	}
	public void setUser_id(int user_id) {
		this.user_id = user_id;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((address_get == null) ? 0 : address_get.hashCode());
		result = prime * result + ((address_put == null) ? 0 : address_put.hashCode());
		result = prime * result + ((after_date == null) ? 0 : after_date.hashCode());
		result = prime * result + after_id;
		result = prime * result + ((after_img == null) ? 0 : after_img.hashCode());
		result = prime * result + ((cause == null) ? 0 : cause.hashCode());
		result = prime * result + ((issue == null) ? 0 : issue.hashCode());
		result = prime * result + ((mode_return == null) ? 0 : mode_return.hashCode());
		result = prime * result + order_id;
		result = prime * result + user_id;
		result = prime * result + ((username == null) ? 0 : username.hashCode());
		result = prime * result + voucher;
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ShopShengq other = (ShopShengq) obj;
		if (address_get == null) {
			if (other.address_get != null)
				return false;
		} else if (!address_get.equals(other.address_get))
			return false;
		if (address_put == null) {
			if (other.address_put != null)
				return false;
		} else if (!address_put.equals(other.address_put))
			return false;
		if (after_date == null) {
			if (other.after_date != null)
				return false;
		} else if (!after_date.equals(other.after_date))
			return false;
		if (after_id != other.after_id)
			return false;
		if (after_img == null) {
			if (other.after_img != null)
				return false;
		} else if (!after_img.equals(other.after_img))
			return false;
		if (cause == null) {
			if (other.cause != null)
				return false;
		} else if (!cause.equals(other.cause))
			return false;
		if (issue == null) {
			if (other.issue != null)
				return false;
		} else if (!issue.equals(other.issue))
			return false;
		if (mode_return == null) {
			if (other.mode_return != null)
				return false;
		} else if (!mode_return.equals(other.mode_return))
			return false;
		if (order_id != other.order_id)
			return false;
		if (user_id != other.user_id)
			return false;
		if (username == null) {
			if (other.username != null)
				return false;
		} else if (!username.equals(other.username))
			return false;
		if (voucher != other.voucher)
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "ShopShengq [after_id=" + after_id + ", order_id=" + order_id + ", cause=" + cause + ", after_date="
				+ after_date + ", issue=" + issue + ", after_img=" + after_img + ", voucher=" + voucher
				+ ", mod_return=" + mode_return + ", address_get=" + address_get + ", address_put=" + address_put
				+ ", username=" + username + ", user_id=" + user_id + "]";
	}
	
	
}
